<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>

<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>邮件地址列表</title>
<!-- Bootstrap -->

<link href="resources/css/bootstrap.min.css" rel="stylesheet"
	media="screen">
</head>
<body>
<html>
<head>
<title>点击按钮，复制文本框的内容</title>
<SCRIPT>
function CopyAll(T)
{
T.focus() //得到文本框焦点
T.select() //全选文本框
if (document.all){
therange=T.createTextRange()
therange.execCommand("Copy") //复制
}
}
</SCRIPT>
</head>
<body>
<INPUT TYPE="BUTTON" VALUE="复制" onclick="CopyAll(text1)" >
<BR>
<TEXTAREA NAME="text1" COLS="40" ROWS="5">这是一段测试文字，你可以点击上边的按钮复制，粘贴到下边的文本框</TEXTAREA>
<TEXTAREA  COLS="40" ROWS="5">在这里粘贴：</TEXTAREA>
</body>
</html>
</body>
</html>